package com.temp.dto;

import com.temp.enumeration.PayType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CreateOrderDTO {

    @NotNull(message = "apiMsg.payAmountNotNull")
    private BigDecimal amount;
    @NotBlank(message = "apiMsg.noticeUrlNotNull")
    private String notifyUrl;
    private String redirectUrl;
    @NotNull(message = "apiMsg.payTypeNotNull")
    private PayType payType;
    @NotBlank(message = "apiMsg.orderTitleNotNull")
    private String subject;
    private String extParam;

}
